#ifndef MESH_H
#define MESH_H
#include "global_object.h"
#include "Geometry.cu"
#include "Triangle.cu"
/**
 * A mesh is a type of Geometry
 */
class Mesh : public Geometry
{
public:
	
	Vertex* verts;
	int numVerts;
	int3* triplets;
	int numTriplets;
	//AccellerationStructure accel;
	inline __host__ __device__  Mesh(void);
	inline __host__ __device__  ~Mesh(void);
	inline __host__ __device__  IntersectResult intersect(IntersectRequest ir);
	inline __host__ __device__  void setVerts(Vertex* vert_buf, int num_verts);
	inline __host__ __device__  void setTriplets(int3* triplet_buf, int num_triplets);
};

#endif